{include file="common/header"}
<div class="content-wrapper">
    <section class="content-header">
        <h1>
            系统设置
            <small>客服设置</small>
        </h1>
        <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i> 客服设置</a></li>
            <li class="active">客服设置</li>
        </ol>
    </section>
    <section class="content">
        <div class="row">
            <div class="col-xs-12">
                <div class="nav-tabs-custom">
                    <!-- Tabs within a box -->
                    <ul class="nav nav-tabs">
                        <li class="active"><a href="#base" data-toggle="tab">客服设置</a></li>
                    </ul>
                    <div class="page-content" style="padding: 20px 0">
                        <form method="post" class="form-horizontal form" id="post_form">
                            <div class="tab-content">
                                <div class="tab-pane active" id="base">
                                    <!--<div class="form-group">-->
                                    <!--    <label class="col-xs-12 col-sm-3 col-md-2 control-label">用户名</label>-->
                                    <!--    <div class="col-sm-8 col-xs-12">-->
                                    <!--        <input readonly type="text" class="form-control" value="{$admin['username']?$admin['username']:''}">-->
                                    <!--        <span class="help-block">用户名不能修改</span>-->
                                    <!--    </div>-->
                                    <!--</div>-->
                                    <div class="form-group"> 
                                        <label class="col-sm-2 control-label">电话</label>
                                        <div class="col-sm-7">
                                            <input type="text" class="form-control" name="tel" placeholder="请输入电话" value="{$data['tel']}">
                                        </div>
                                    </div>
                                    <div class="form-group"> 
                                        <label class="col-sm-2 control-label">微信</label>
                                        <div class="col-sm-7">
                                            <input type="text" class="form-control" name="wx" placeholder="请输入微信" value="{$data['wx']}">
                                        </div>
                                    </div>
                                    {:tpl_upload_image(['name'=>'wximg','title' => '微信二维码','value'=>!empty($data['wximg'])?$data['wximg']:'','placeholder'=>'请上传微信二维码','help'=>'建议宽高：200*200'])}
                                    
                                    <div class="form-group"> 
                                        <label class="col-sm-2 control-label">qq</label>
                                        <div class="col-sm-7">
                                            <input type="text" class="form-control" name="qq" placeholder="请输入qq号" value="{$data['qq']}">
                                        </div>
                                    </div>
                                    {:tpl_upload_image(['name'=>'qqimg','title' => 'qq图片','value'=>!empty($data['qqimg'])?$data['qqimg']:'','placeholder'=>'请上传qq图片','help'=>'建议宽高：200*200'])}
                                     <div class="form-group"> 
                                        <label class="col-sm-2 control-label">在线时间</label>
                                        <div class="col-sm-7">
                                            <input type="text" class="form-control" name="onlinedt" placeholder="请输入在线时间" value="{$data['onlinedt']}">
                                        </div>
                                    </div>
                                     <div class="form-group"> 
                                        <label class="col-sm-2 control-label">在线客服链接</label>
                                        <div class="col-sm-7">
                                            <input type="text" class="form-control" name="link" placeholder="请输入在线客服链接" value="{$data['link']}">
                                        </div>
                                    </div>
                                    
                                    <!--<div class="form-group">-->
                                    <!--    <label class="col-xs-12 col-sm-3 col-md-2 control-label">新密码</label>-->
                                    <!--    <div class="col-sm-8 col-xs-12">-->
                                    <!--        <input type="text" class="form-control" name="password" placeholder="请输入新密码">-->
                                    <!--        <span class="help-block">不修改密码时，可以不需要填写</span>-->
                                    <!--    </div>-->
                                    <!--</div>-->
                                    <!--<div class="form-group">-->
                                    <!--    <label class="col-xs-12 col-sm-3 col-md-2 control-label">确认新密码</label>-->
                                    <!--    <div class="col-sm-8 col-xs-12">-->
                                    <!--        <input type="text" class="form-control" name="password_confirm" placeholder="请再次输入新密码">-->
                                    <!--        <span class="help-block">不修改密码时，可以不需要填写</span>-->
                                    <!--    </div>-->
                                    <!--</div>-->
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-sm-8 col-xs-12 col-sm-offset-2">
                                    <button type="button" name="submit" class="btn btn-primary">提交</button>
                                </div>
                            </div>
                        </form>
                    </div>
                    <script type="text/javascript">
                        $(function () {
                            //提交分类信息
                            $("button[name='submit']").click(function () {
                                $.post(
                                    window.location.href,
                                    $('#post_form').serialize(),
                                    function (res) {
                                        message(res.message,res.redirect,res.type)
                                    },'json'
                                );
                            });
                        });
                    </script>
                </div>
                <!-- /.nav-tabs-custom -->
            </div>
            <!-- /.col -->
        </div>
    </section>
</div>
{include file='common/ufooter'}
